package org.jeecg.modules.chargeElectricity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.chargeElectricity.entity.ChargeElectricity;
import org.jeecg.modules.chargeElectricity.entity.ChargeElectricityDetail;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 电价方案
 * @Author: jeecg-boot
 * @Date:   2023-08-31
 * @Version: V1.0
 */
public interface IChargeElectricityService extends IService<ChargeElectricity> {

	void updateStatus(ChargeElectricity chargeElectricity);

	List<ChargeElectricityDetail> getProgramme();

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(ChargeElectricity chargeElectricity,List<ChargeElectricityDetail> chargeElectricityDetailList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(ChargeElectricity chargeElectricity,List<ChargeElectricityDetail> chargeElectricityDetailList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
